package com.spring.boot.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/10/23 18:40
 * @Description
 */
@TableName("sys_user")
public class User implements Serializable {

    // 标记当前 id 字段是数据库表中主键
    @TableId(value = "id")
    private Integer id;

    // 标记当前字段是数据库表字段
    @TableField(value = "username")
    private String username;

    // 标记当前字段是数据库表字段
    @TableField(value = "password")
    private String password;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
